package com.shtel.paas.monitorcenter.process.management.mappper;


import com.shtel.paas.monitorcenter.process.management.entity.AlarmFrequencyEntity;
import com.shtel.paas.monitorcenter.process.management.entity.HostInformation;
import com.shtel.paas.monitorcenter.process.management.entity.ProcessInforEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.sql.SQLException;
import java.util.List;

/**
 * @ClassName
 * @Description Too
 * @Author zhoujie
 * @Data 2018/06/23 11:46
 **/
@Component
public interface ProcessListMapper {

   public List<ProcessInforEntity> selectAll() throws SQLException;

   public int deleteProcessInfo(@Param("id")int id) throws SQLException;

   public List<HostInformation> selectHostInfo(@Param("hostid")int hostid) throws SQLException;

   public int insetProcessInfo(ProcessInforEntity param) throws SQLException;

   public int updateProcessInfo(ProcessInforEntity param) throws SQLException;

   public List<ProcessInforEntity> selectSingleInfo(@Param("ip")String ip,@Param("id")int id) throws SQLException;

   public int insertAlarmFrequency(AlarmFrequencyEntity param) throws SQLException;

   public AlarmFrequencyEntity selectMaxFrequency(@Param("times")int times,@Param("minutes")int minutes) throws SQLException;

   public int deleteAlarmFrequency(@Param("id")int id) throws SQLException;
}
